<?php
namespace app\admin\controller;

use core\V;
use core\Api;
use core\modules\Uploader;
/**
 * 上传相关操作
 */


class Upload extends \C {



  // 上传图片
  public function image(){

    $upload=new Uploader(2*1024*1024,"jpg,png,gif");
    $upload->image();

  }
  // 上传视频
  public function video(){

    $upload=new Uploader(200*1024*1024,"mp4");
    $upload->media();

  }



}
